/*
 * Copyright © 2017 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */

package cn.hermit.nio.http.server.rest.annotation;

import cn.hermit.nio.http.Http;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author JackGao 高建国
 * @description //TODO 设计说明
 * @date 29/5/2017
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Operation {

    Http.Verb name() default Http.Verb.GET;

    String path() default "";

    String[] tags() default {};

    String summary() default "";

    String description() default "";

    //The id MUST be unique among all operations described in the API
    String operationId() default "";

    String[] consumes() default {};

    String[] produces() default {};

    Param[] parameters() default {};

    Response[] responses() default @Response;

    String[] schemes() default {};

    boolean deprecated() default false;


}
